package com.simple.crawler.annotation;

import com.simple.crawler.connect.Connection;
import com.simple.crawler.connect.ResponseConverter;
import com.simple.crawler.connect.ext.StringResponseConverter;
import com.simple.crawler.connect.http.HttpConnection;

import java.lang.annotation.*;

/**
 * @ClassName TaskFeature
 * @Author Administrator
 * @Desc TODO
 * @CreateTime 2019/8/6 21:39
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface TaskFeature {

    Class<? extends Connection> conn() default HttpConnection.class;

    String charSet() default "";

    Class<? extends ResponseConverter> converter() default StringResponseConverter.class;

    boolean cache() default true;

}
